if('serviceWorker' in navigator) {
	navigator.serviceWorker.register('/sw.js')
		.then(reg => console.log('service worker registed!'),
			e => console.log('Opooos, something wrong happend!\nError:' + e));
}

window.onload = function() {
	document.body.append('PWA!')
}